package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Role;
import cn.wolfcode.query.PageResult;
import cn.wolfcode.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {


    void save(Employee employee, Long[] ids);

    void update(Employee employee,Long[] ids);

    void delete(Long id);

    Employee get(Long id);

    List<Employee> listAll();

    PageInfo<Employee> query(QueryObject qo);

    Employee login(String username, String password);

    String selectPwdByEmpId(Long id);

    void updatePwdByEmpId(String newPassword,Long id);

    void batchDelete(Long[] ids);

    Employee selectByName(String name);

    void updateStatusByEmpId(boolean status ,Long id);

    Workbook exportXls();

    void importXls(MultipartFile file) throws IOException;

    List<Employee> selectByRoleSn(String...sns);
}
